<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDistributionLeaderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('distribution_leader', function(Blueprint $table)
        {
            //分销团长
            $table->increments('id');
            $table->integer('user_id')  ->default(0)  ->comment('用户id');
            $table->string('phone')     ->nullable()  ->comment('手机号');
            $table->integer('status')   ->default(0)  ->comment('状态，0:未注册，1:已注册');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
